<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type">
    <meta charset="utf-8">
    <title>{{$data.title}} - 后台管理</title>
    <link href="{{$smarty.const.APP_URL}}templates/admin/css/admin.css" type="text/css" rel="stylesheet">
    <link href="{{$smarty.const.APP_URL}}templates/admin/js/artDialog/black.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/jquery.cookie.js"></script>
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/artDialog/jquery.artDialog.min.js"></script>
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/admin.js"></script>
    <script type="text/javascript">
        var this_uri = "/setting/pay";
    </script>
</head>
<body>

<div id="header">
    <div class="logo"><a href="/"><img src="{{$smarty.const.APP_URL}}templates/admin/images/logo.png" title="后台首页"></a></div>
    <div class="loading"><div id="ajax-loader" title="Ajax数据更新中..."></div></div>
    <div id="topbar">
        <!--顶部菜单 start-->
        {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/topmenu.html"}}
        <!--顶部菜单 end-->
        <!--顶部右侧 start-->
        {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/topuser.html"}}
        <!--顶部右侧 end-->
        <div></div>
    </div>
</div>

<div><!-- 外层添加一个DIV解决IE8下margin-top的问题 -->
    <table id="maintable" cellpadding="0" cellspacing="0">
        <tbody><tr>
            <!--左侧菜单 start-->
            {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/leftmenu.html"}}
            <!--左侧菜单 end-->
            <!--主要TD start-->
            <td class="maintd" valign="top">
                <div class="maindiv">
                    <div id="main">
                        <div class="itemtitle">
                            <h3>编辑支付方式</h3>
                            <ul>
                                <a class="link-btn link-live" href="/setting/pay_edit">编辑支付方式</a>
                                <a class="link-btn" href="/setting/pay">支付方式列表</a>
                                <a class="link-btn" href="/setting/pay_add">添加支付方式</a>
                            </ul>
                        </div>
                        <form id="form1" action="/setting/pay_edit_post" method="post" name="form1">
                            <input type="hidden" name="pay_id" value="{{$info.pay_id}}"/>
                            <table class="tb">
                                <tbody>
                                <tr>
                                    <td class="tbheader" colspan="38">编辑支付方式</td>
                                </tr>
                                </tbody>
                            </table>
                            <table class="tb" id="table_1">
                                <tbody>
                                <tr>
                                    <td class="td">
                                        <b>
                                            支付方式名称:
                                        </b>
                                    </td>
                                    <td class="td last">
                                        <input type="text" size="30" value="{{$info.pay_name}}" name="pay_name">
                                        <font class="red">* 必填项</font>
                                    </td>
                                </tr>
                                {{foreach from=$info.pay_info item=i key=k}}
                                <tr>
                                    <td class="td">
                                        <b>
                                            {{$i.name}}:
                                        </b>
                                    </td>
                                    <td class="td last">
                                        <input type="hidden" value="{{$k+1}}" name="pay_info_num">
                                        <input type="hidden" value="{{$i.name}}" name="name_{{$k}}">
                                        <input type="text" size="30" value="{{$i.value}}" name="value_{{$k}}">
                                        <font class="red">* 必填项</font>
                                    </td>
                                </tr>
                                {{/foreach}}
                                <tr>
                                    <td class="td">
                                        <b>是否使用?</b>
                                    </td>
                                    <td class="td last">
                                        <input type="radio" {{if $info.is_use==1}}checked{{/if}} value="1" name="is_use"><b>是</b>
                                        <input type="radio" {{if $info.is_use==2}}checked{{/if}} value="2" name="is_use"><b>否</b>
                                        <span class="light">请选择是否使用.</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>
                                            排序:
                                        </b>
                                    </td>
                                    <td class="td last">
                                        <input type="text" size="30" value="{{$info.sort}}" name="sort">
                                        <span class="light">注: 请填写排序(3位数字，升序排序).</span>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <div class="submit">
                                <input class="save" type="submit" value="提交">
                            </div>
                        </form>
                        <!--底部信息 start-->
                        {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/sysinfo.html"}}
                        <!--底部信息 end-->
                    </div>
                </div>
            </td>
            <!--主要TD end-->
        </tr>
        </tbody></table>
</div>

<script type="text/javascript">
    jQuery(document).ready(function() {
        //调整高度
        $("#container").height($(window).height()-40);
        $(window).resize(function() {
            $("#container").height($(window).height()-40);
        });

        App.init();//左侧菜单初始化

        var a101 = $("#topbar"); //顶部下接菜单
        a101.find("dl").Jdropdown({delay: 0}, function(a){});
    });
</script>
</body>
</html>